//该文件专门用于创建整个应用的路由器
import VueRouter from 'vue-router'

// import MyIndex from '../pages/MyIndex'
import MyFactor from '../pages/MyFactor.vue'
import MyStore from '../pages/MyStore.vue'
import MyHospital from '../pages/MyHospital.vue'
import MyTranstion from '../pages/MyTranstion.vue'
import MyChecking from '../pages/MyChecking.vue'


export default new VueRouter({
    routes:[
        // {
        //     name:'index',
        //     path:'/index',
        //     component:'MyIndex',
        //     meta:{title:'主页'}
        // },
        {
            name:'factor',
            path:'/factor',
            component:MyFactor,
            meta:{title:'制造商'}
        },
        {
            name:'hospital',
            path:'/hospital',
            component:MyHospital,
            meta:{title:'医院'}
        },
        {
            name:'store',
            path:'/store',
            component:MyStore,
            meta:{title:'仓储企业'}
        },
        {
            name:'transtion',
            path:'/transtion',
            component:MyTranstion,
            meta:{title:'运输企业'}
        },
        {
            name:'checking',
            path:'/checking',
            component:MyChecking,
            meta:{title:'疫苗查询'}
        }
    ]
})